﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdminPage.aspx.cs" Inherits="DragDraw.Web.AdminPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>管理员工具</title>
</head>
<body>
    <form id="AdminPageForm" runat="server">
    <div>
        <asp:Button ID="ButtonModify" runat="server" Text="确定修改" OnClick="ButtonModify_OnClick" />
        <asp:GridView ID="GridViewWidget" runat="server" AutoGenerateColumns="false" DataKeyNames="ID"
            Width="386px" AutoGenerateSelectButton="true" OnSelectedIndexChanged="GridViewWidget_SelectedIndexChanged">
            <Columns>
                <asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID" />
                <asp:BoundField DataField="WidgetName" HeaderText="WidgetName" SortExpression="WidgetName" />
                <asp:BoundField DataField="WidgetFileName" HeaderText="WidgetFileName" SortExpression="WidgetFileName" />
                <asp:BoundField DataField="WidgetAssemblyName" HeaderText="WidgetAssemblyName" SortExpression="WidgetAssemblyName" />
                <asp:BoundField DataField="Tags" HeaderText="Tags" SortExpression="Tags" />
                <asp:BoundField DataField="ImageUrl" HeaderText="ImageUrl" SortExpression="ImageUrl" />
                <asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" />
            </Columns>
        </asp:GridView>
        
        <asp:Button ID="ButtonAdd" Text="增加" runat="server" OnClick="ButtonAdd_OnClick" />
        <asp:Button ID="ButtonDel" Text="清空" runat="server" OnClick="ButtonDel_OnClick" />
        <asp:Label ID="LabelTip" Text="请在下面填写你想要增加的WidgetLibInfo的信息" runat="server"></asp:Label>
        <br />
        <asp:Label ID="LabelID" runat="server" Text="ID:"></asp:Label>
        <asp:TextBox ID="TextBoxID" runat="server"></asp:TextBox>
        <br />
        <asp:Label ID="LabelWidgetName" runat="server" Text="WidgetName:"></asp:Label>
        <asp:TextBox ID="TextBoxWidgetName" runat="server">记事本</asp:TextBox>
        <br />
        <asp:Label ID="LabelWidgetFileName" runat="server" Text="WidgetFileName:"></asp:Label>
        <asp:TextBox ID="TextBoxWidgetFileName" runat="server">DragDraw.Tool.xap</asp:TextBox>
        <br />
        <asp:Label ID="LabelWidgetAssemblyName" runat="server" Text="WidgetAssemblyName:"></asp:Label>
        <asp:TextBox ID="TextBoxWidgetAssemblyName" runat="server">DragDraw.Tool.NotePad</asp:TextBox>
        <br />
        <asp:Label ID="LabelTags" runat="server" Text="Tags:"></asp:Label>
        <asp:TextBox ID="TextBoxTags" runat="server">Common</asp:TextBox>
        <br />
        <asp:Label ID="LabelImageUrl" runat="server" Text="ImageUrl:"></asp:Label>
        <asp:TextBox ID="TextBoxImageUrl" runat="server"></asp:TextBox>
        <br />
        <asp:Label ID="LabelDescription" runat="server" Text="Description:"></asp:Label>
        <asp:TextBox ID="TextBoxDescription" runat="server">简便的记事本</asp:TextBox>
        <br />
        <asp:Label ID="LabelFinalMessage" runat="server" Text=""></asp:Label>
    </div>
    </form>
</body>
</html>
